#!/usr/bin/env python3
# -*- coding: utf-8 -*-

'日期加减，需要导入timedelta类'
from datetime import datetime,timedelta

now = datetime.now()
print(now,' 前天此刻： ',now-timedelta(days=1))
print(now,' 明天此刻： ',now+timedelta(days=1))
print(now,' 明天此刻+30分钟： ',now+timedelta(days=1,minutes=30))